<div id="content">
    <?php
    include("./PDO/PdoCategorie.php"); //On inclut les fonctions PDO (create / update etc...)
    include("./class/Categorie.php"); //On inclut les fonctions PDO (create / update etc...)

    $categorie = new PdoCategorie();
    $categorie = $categorie->readAll();

    include("./PDO/PdoReunion.php"); //On inclut les fonctions PDO (create / update etc...)
    include("./class/Reunion.php"); //On inclut les fonctions PDO (create / update etc...)

    $reunion = new PdoReunion();
    $reunion = $reunion->readAll();
    ?>
    <form id="validate_form" action="index.php?route=combat&action=traitement_ajout" method="post">

        <label>Titre combat</label>
        <input name="TITRECOMBAT" id="NomLieu" class="validate[required]"><span id="mess_exist"></span>

        <label>Categorie</label>
        <select name="IDCATEGORIE" size="1">
            <?php
            foreach ($categorie as $unecategorie) {
                echo '<option value="' . $unecategorie["IDCATEGORIE"] . '">' . $unecategorie["NOMCATEGORIE"] . '</option>';
            }
            ?>
        </select>

        <label>Reunion</label>
        <select name="IDREUNION" size="1">
            <?php
            foreach ($reunion as $unereunion) {
                echo '<option value="' . $unereunion["IDREUNION"] . '">' . $unereunion["NOMREUNION"] . '</option>';
            }
            ?>
        </select><br/>

        <input type="submit" id="valider" />
    </form>
</div>